package com.fengye.security.captcha.authentication;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.security.crypto.password.NoOpPasswordEncoder;
import org.springframework.security.crypto.password.PasswordEncoder;

/**
 * 自定义 AuthenticationProvider 的方式,实现验证码校验
 * @author sky
 * @date 2021年06月01日 11:16 上午
 */
@SpringBootApplication
public class CaptchaAuthenticationApplication {

    @Bean
    PasswordEncoder passwordEncoder(){
        return NoOpPasswordEncoder.getInstance();
    }


    public static void main(String[] args) {
        SpringApplication.run(CaptchaAuthenticationApplication.class, args);
    }
}
